public void save(Object o) {
	if (o == null)
		return;
	Session session = getLocalSession();
	Transaction trans = session.beginTransaction();
	try {
		session.saveOrUpdate(o);
		trans.commit();
	} catch (Exception e) {
		trans.rollback();
		e.printStackTrace();
	} 
}